import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//查询设备
export const getConfigs = (data) =>
  request({
    url: baseUrl + "/api/board/station/interval",
    method: "get",
    params: data,
  });
// 机种序列
export const grtUsersall = (data) =>
  request({
    url: baseUrl + "/api/board/station/interval",
    method: "get",
    params: data,
  });
//绑定码
export const bindingCode= (list) =>
  request({
    url: baseUrl + "/api/board/station/jieban",
    method: "post",
    data: list,
  });
  export const bindview = (list) =>
    request({
      url: baseUrl + "/api/board/pump/code",
      method: "post",
      data: list,
    });
// 删除码
export const delCode = (list) =>
  request({
    url: baseUrl + "/api/board/station/jieban",
    method: "put",
    data: list,
  });
// 删除用户/api/board/station/interval
export const eidMinAMax = (list) =>
  request({
    url: baseUrl + "/api/board/station/interval",
    method: "put",
    data: list,
  });
export const dlerepair = (list) =>
  request({
    url: baseUrl + "/api/repair",
    method: "delete",
    data: list,
  });
// 查询角色
export const roleStation = () =>
  request({
    url: baseUrl + "/api/craft/station",
    method: "get",
  });
